import request from "@/utils/request";
import upload from "@/utils/upload";

// 获取字典
export function getSystemDictTypeData(dictType) {
  return request({
    url: '/system/dict/data/type/' + dictType,
    method: 'get'
  })
}

// 上传图片
export function uploadImg(data) {
  return upload({
    url: '/common/upload',
    name: data.name,
    filePath: data.filePath,
    formData: data.formData
  })
}
